const jsonpath = require('jsonpath')
const creteValueRelace = require('./lib/creteValueRelace')
// jsonpath.
const obj = {
    "msg": "请求成功",
    "traceId": "dc86418d8e85469493eaee69e99c63f5.608.17173951650868577",
    "code": "200",
    "data": [
        {
            "floginUrlCode": null,
            "homePagePicUrl": null,
            "fconfigurationId": 1000023,
            "illustrationPicUrl": "https://img.bbmall.cn/bbmall//default/20230926/494591647517061120.png",
            "fconfigurationType": 2,
            "fremarks": null,
            "fpicText": "PCBU",
            "logoUrl": "https://img.bbmall.cn/bbmall//default/20230926/494591543548260352.png",
            "backgroundPicUrl": "https://img.bbmall.cn/bbmall//default/20230926/494591769214005248.png",
            "fconfigurationName": "pcbu",
            "ftemplateType": 1,
            "fcreateTime": "2023-09-26 19:31:11",
            "floginUrl": "pcbu.bbmall.cn",
            "fmodifyTime": "2023-09-26 19:31:11"
        },
        {
            "floginUrlCode": null,
            "homePagePicUrl": null,
            "fconfigurationId": 1000021,
            "illustrationPicUrl": "https://img.league-test.xyb2b.com/merchant/1676526830440340379.png",
            "fconfigurationType": 2,
            "fremarks": "皮肤",
            "fpicText": "",
            "logoUrl": "https://img.league-test.xyb2b.com/merchant/1676526836482442653.png",
            "backgroundPicUrl": "https://img.league-test.xyb2b.com/xyacsd/default/20220909/356021012687302656.png",
            "fconfigurationName": "兴盛优选素材",
            "ftemplateType": 1,
            "fcreateTime": "2023-02-16 16:46:24",
            "floginUrl": "xing.bbmall.cn",
            "fmodifyTime": "2023-02-27 15:17:30"
        },
        {
            "floginUrlCode": null,
            "homePagePicUrl": null,
            "fconfigurationId": 1000003,
            "illustrationPicUrl": "https://img.bbmall.cn/xyacsd//default/20220830/352408769060876288.png",
            "fconfigurationType": 2,
            "fremarks": null,
            "fpicText": "客户中心",
            "logoUrl": "https://img.bbmall.cn/xyacsd//default/20220830/352408680410066944.png",
            "backgroundPicUrl": "https://img.bbmall.cn/xyacsd//default/20220830/352408711306096640.png",
            "fconfigurationName": "斯凯诺供应链",
            "ftemplateType": 1,
            "fcreateTime": "2022-08-30 11:06:44",
            "floginUrl": "exp.bbmall.cn",
            "fmodifyTime": "2022-08-30 11:06:44"
        },
        {
            "floginUrlCode": null,
            "homePagePicUrl": null,
            "fconfigurationId": 1000002,
            "illustrationPicUrl": "https://img.bbmall.cn/xyacsd//default/20220830/352408502634885120.png",
            "fconfigurationType": 2,
            "fremarks": null,
            "fpicText": "盘古SCM",
            "logoUrl": "https://img.bbmall.cn/xyacsd//default/20221011/367748315065823232.png",
            "backgroundPicUrl": "https://img.bbmall.cn/xyacsd//default/20220830/352408528458428416.png",
            "fconfigurationName": "迦境SCM",
            "ftemplateType": 1,
            "fcreateTime": "2022-08-30 11:05:51",
            "floginUrl": "jastate.bbmall.cn",
            "fmodifyTime": "2022-08-30 11:05:51"
        },
        {
            "floginUrlCode": null,
            "homePagePicUrl": null,
            "fconfigurationId": 1000001,
            "illustrationPicUrl": "https://img.bbmall.cn/xyacsd//default/20220830/352408292814041088.png",
            "fconfigurationType": 2,
            "fremarks": null,
            "fpicText": "盘古SCM",
            "logoUrl": "https://img.bbmall.cn/xyacsd//default/20221011/367748206270951424.png",
            "backgroundPicUrl": "https://img.bbmall.cn/xyacsd//default/20220830/352408248955383808.png",
            "fconfigurationName": "盘古SCM",
            "ftemplateType": 1,
            "fcreateTime": "2022-08-30 11:04:49",
            "floginUrl": "xingyun.bbmall.cn",
            "fmodifyTime": "2022-08-30 11:04:49"
        },
        {
            "floginUrlCode": null,
            "homePagePicUrl": null,
            "fconfigurationId": 1000000,
            "illustrationPicUrl": "https://img.bbmall.cn/xyacsd//default/20220829/352183033926070272.png",
            "fconfigurationType": 2,
            "fremarks": null,
            "fpicText": "SCM-盘古",
            "logoUrl": "https://img.bbmall.cn/xyacsd//default/20220829/352175867568009216.png",
            "backgroundPicUrl": "https://img.bbmall.cn/xyacsd//default/20220829/352176570945187840.png",
            "fconfigurationName": "SCM-测试版模板",
            "ftemplateType": 1,
            "fcreateTime": "2022-08-29 19:44:02",
            "floginUrl": "demo.bbmall.cn",
            "fmodifyTime": "2022-08-29 20:02:07"
        }
    ],
    "success": true
}

const  modify = {
    "msg":{
        "type":"object",

       "value": "{data[2]}",
    },
    "code":"{sss}traceIdsss",
    "data[0:6].illustrationPicUrl":"*****"
  
}


 

console.log(creteValueRelace(obj,modify))